<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
<link rel="stylesheet" media="screen" type="text/css" title="Inscr_Css" href="_css/NewCliF.css" />
<?php 
$sql = new db();
$req = 'SELECT * FROM usine WHERE GLN_DO='.$_SESSION['login'];
$sql->query($req);
$data = $sql->fetch_array();
$req = "SELECT mdp FROM identification WHERE GLN='".$_SESSION['login']."'";
$sql->query($req);
$mdp = $sql->fetch_array();
?>
 <div id="main_title">Modifier les coordonn&eacute;es</div>
 <div id="cadre">
   <form id="formu" action="<?php echo ABS_PATH.ROOT; ?>?page=Usine/Coord&fct=Usine/Coord" method="post" >
    <label for="inscr_gnl" class="label_form">GNL :</label>
    <input type="text" readonly="readonly" name="inscr_gnl" class="inscr_form" value="<?php echo $data['GLN_DO'];?>"/><br />
	<label for="inscr_rs" class="label_form">Nom :</label>
    <input type="text" name="inscr_rs" class="inscr_form" value="<?php echo $data['Nom'];?>"/><br />
	<label for="inscr_adr" class="label_form">Adresse :</label>
    <input type="text" name="inscr_adr" class="inscr_form" value="<?php echo $data['Rue']; ?>"/><br />
	<label for="inscr_ville" class="label_form">Ville :</label>
    <input type="text" name="inscr_ville" class="inscr_form" value="<?php echo $data['Ville'];?>"/><br />
	<label for="inscr_cp" class="label_form">Code Postal :</label>
    <input type="text" name="inscr_cp" class="inscr_form" value="<?php echo $data['CP'];?>"/><br />
	<label for="inscr_mail" class="label_form">E-Mail :</label>
    <input type="text" name="inscr_mail" class="inscr_form" value="<?php echo $data['Mail'];?>"/><br />
	<label for="inscr_mdp" class="label_form">Mot de passe :</label>
    <input type="password" name="inscr_mdp" class="inscr_form" value="<?php echo $mdp['mdp'];?>"/><br />
	<label for="inscr_gpsLA" class="label_form">GPS Latitude :</label>
    <input type="text" name="inscr_gpsLA" class="inscr_form" value="<?php echo $data['Coord_GPS_Latitude'];?>"/><br />
	<label for="inscr_gpsLO" class="label_form">GPS Longitude :</label>
    <input type="text" name="inscr_gpsLO" class="inscr_form" value="<?php echo $data['Coord_GPS_Longitude'];?>"/><br />
	<label for="inscr_tel" class="label_form">T&eacute;l&eacute;phone :</label> 
    <input type="text" name="inscr_tel" class="inscr_form" value="<?php echo $data['Tel'];?>"/><br />
	<label for="inscr_mob" class="label_form">Mobile :</label>
    <input type="text" name="inscr_mob" class="inscr_form" value="<?php echo $data['Mobil'];?>"/><br />
	<input type="hidden" name="agent" value="Client"/>
	<input id="submit" type="submit" />
   </form>
   </div>
  <div class="Error">
   <?php 
    if (isset($error))
	 echo $error; 
   ?> 
   </div>